package org.jcut.dao;

import java.util.List;

import org.jcut.bean.Commodity;
import org.springframework.stereotype.Repository;

@Repository
public interface ICommodity {

    int buyCommodity(Commodity commodity);
    
    int cutStock(Commodity commodity);
    
    int cutSales(Commodity commodity);
    
    int returnCommodity(Commodity commodity);
  
    List<Commodity> selectTypeCommodity(String t_name);
    
    List<Commodity> chooseCommodity(Commodity commodity);
    
    int addCommodity(Commodity commodity);
    
    int updateDetail(Commodity commodity);
    
    List<Commodity> adminSelect();
    
    int updateDis(Commodity commodity);
    
    int updateCommodity(Commodity commodity);
}